package com.xbongbong.saas.constant.teammembers;

/**
 * @author: 汪腾伟
 * @date: Created in 2021/12/31 15:00
 * @description： 团队成员常量
 */
public class TeamMembersConstant {

    /**
     *
     * 团队默认名称
     */
    public static String TEAM_DEFAULT_NAME = "constant.teamMembers.team_default_name";

    /**
     * 团队成员异常（主要是为了封装团队成员功能中的异常信息的）
     */
    public static String TEAM_MEMBER_ERROR = "constant.teamMembers.team_member_error";

    /**
     * 团队成员异常（主要是为了封装团队成员功能中的异常信息的）
     */
    public static String USER_NOT_EXIST = "constant.teamMembers.user_not_exist";

    /**
     * 的团队
     */
    public static String TEAM_SUFFIX = "constant.teamMembers.team_suffix";

    /**
     * 团队名称
     */
    public static String TEAM_NAME = "constant.teamMembers.team_name";


    /**
     * 可编辑
     */
    public static final String EDIT = "constant.teamMembers.edit";

    /**
     * 不可编辑
     */
    public static final String NO_EDIT = "constant.teamMembers.no_edit";

    /**
     * 限制用户标签不能超过10
     */
    public static final Integer USER_LABEL_LIMIT = 10;

    public static final String LINK_BUSINESS_TYPE_KEY =  "linkBusinessType";

    /**
     * 客户表单关联业务不能超过6个
    */
    public static final Integer CUSTOMER_LINK_LIMIT = 6;

    /**
     * 非客户表单关联业务不能超过5个
     */
    public static final Integer OTHER_LINK_LIMIT = 5;
    /**
     * 代表前端不显示协同人有没有编辑权
     */
    public static final Integer NO_FORM_PERMISSION = -1;

    /**
     * 模式
     */
    public static final String MODEL = "model";

    /**
     * 关联业务类型
     */
    public static final String LINK_BUSINESS_TYPE = "linkBusinessType";

    /**
     * 新建失败报错
     */
    public static final String NEW_FAIL_MESSAGE = "constant.teamMembers.new_fail_message";

    /**
     * 编辑保存报错
     */
    public static final String EDIT_FAIL_MESSAGE = "constant.teamMembers.edit_fail_message";

    /**
     * 操作失败报错
     */
    public static final String OPERATE_FAIL_MESSAGE = "constant.teamMembers.operate_fail_message";

    /**
     * 成员标签
     */
    public static final String MEMBER_LABELS = "constant.teamMembers.member_labels";

    /**
     * 标签
     */
    public static final String LABELS = "constant.teamMembers.labels";

    /**
     * 数据共享/隔离设置
     */
    public static final String DATA_SHARING_OR_ISOLATION_SETTING = "constant.teamMembers.data_sharing_or_isolation_setting";

    /**
     * 数据共享
     */
    public static final String DATA_SHARING = "constant.teamMembers.data_sharing";

    /**
     * 数据隔离
     */
    public static final String ISOLATION_SHARING = "constant.teamMembers.isolation_sharing";

    /**
     * 继承列表设置
     */
    public static final String LINK_FORM_SETTING = "constant.teamMembers.link_form_setting";

    /**
     * 创建团队失败
     */
    public static final String CREATE_TEAM_FAIL_MESSAGE = "constant.teamMembers.create_team_fail_message";

    /**
     * 新增协同人失败
     */
    public static final String CREATE_CO_USER_FAIL_MESSAGE = "constant.teamMembers.create_co_user_fail_message";

    /**
     * 团队名称最长20字符
     */
    public static final int TEAM_NAME_MAX = 20;

    public static final long OLD_TIME_DATA = 1653408000;


    /**
     * 新增/删除/更新的用户，用于判断es保存等待map的key，以下同
     */
    public static final String ADD_USER = "addUser";
    public static final String DEL_USER = "delUser";
    public static final String TO_MAIN_USER = "toMainUser";
    public static final String TO_CO_USER = "toCoUser";
    public static final String UPDATE_USER = "updateUser";

}
